package com.gk.panda.apis.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gk.panda.apis.entity.eventtodo.dto.AcceptanceEventDto;
import com.gk.panda.pojo.EventFlowRecord;

import java.util.List;

/**
 * @ClassName: EventFlowRecordService
 * @Description: 待办事项的流转记录
 * @author: Sir.yang
 * @date: 2022/11/3 15:21
 * @version: 1.0
 **/
public interface EventFlowRecordService extends IService<EventFlowRecord> {

    /**
     * @description: 根据事件ID获取该事件流转记录
     * @param: [eventId]
     * @return: java.util.List<com.gk.panda.pojo.EventFlowRecord>
     * @date: 2022/11/3 17:34
     * @version: 1.0
     **/
    List<EventFlowRecord> getEventFlowRecordListByEventId(Integer eventId);

    /**
     * @description: 添加流转记录，根据状态
     * @param: [acceptanceEventDto]
     * @return: int
     * @date: 2022/11/3 23:09
     * @vesion: 1.0
     **/
    int saveRecordByStatus(AcceptanceEventDto dto, Integer status, String acceptance);

    /**
     * @description: 根据事件id和状态查询事件记录详情信息
     * @param: [eventId, status]
     * @return: com.gk.panda.pojo.EventFlowRecord
     * @date: 2022/11/4 9:31
     * @version: 1.0
     **/
    EventFlowRecord getEventFlowRecordByEventIdAndStatus(Integer eventId, Integer status);
}
